package com.example.myapplication.ui.activity.tools

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.myapplication.request.ToolsRequest
import kotlinx.coroutines.launch

/**
 *常用工具的viewModel
 *
 * @author : Kun
 * @date : 2021/6/9
 * @time : 10:56
 */
class ToolsViewModel : ViewModel() {
    /**
     * 工具相关的请求
     */
    val toolsRequest = ToolsRequest()

    /**
     * 获取常用网站
     */
    fun requestCommonWebsite() {
        viewModelScope.launch {
            toolsRequest.requestCommonWebsite()
        }
    }

}